//
//  SCEatPlayCell.m
//  shangcheng
//
//  Created by 张艳江 on 2019/7/1.
//  Copyright © 2019 张艳江. All rights reserved.
//

#import "SCEatPlayCell.h"

@implementation SCEatPlayCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.logoImage.clipsToBounds = YES;
    self.logoImage.contentMode = UIViewContentModeScaleAspectFill;
}

- (void)setModel:(SCModel *)model{
    _model = model;
    [self.logoImage sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",HTTP_URL,model.logo]] placeholderImage:[UIImage imageNamed:@""]];
    self.nameLab.text = model.name;
    self.priceLab.text = [NSString stringWithFormat:@"¥ %@",model.permoney];
    self.catLab.text = model.cat_list;
    self.distanceLab.text = model.distance;
    self.scoreLab.text = [MyTool removeFloatAllZeroByString:model.score];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
